a={'A':8,'D':3,'B':15,'F':2,'C':6}
lst_1=list(a.keys())
lst_1.sort()
for i in lst_1:
    print(i)
print('')
lst_2=list(a.values())
lst_2.sort()
for i in lst_2:
    print(i)
print('')
lst_3=reversed(lst_1)
for i in lst_3:
    print(i+': '+str(a[i]))
print('')
number=0
b=0
for i in a:
    number=number+a[i]
    b=b+1
print(f'{number/b:.1f}')
print('')
for i in lst_1:
    print(i+': '+"*"*a[i])
    
